
public class Grafo {
	private int maxVertices;
//	private Vertice listaVertice[];
	private int matAdj[][];
//	private int nVertices;


	public Grafo(int m) {
		maxVertices = m;
//		listaVertice = new Vertice[maxVertices];
//		listaVisitados = new int[maxVertices];
//		bolsa = new int[maxVertices];
		matAdj = new int[maxVertices][maxVertices];
//		nVertices= 0;
		
		for(int y=0; y<maxVertices; y++)
			for(int x=0; x<maxVertices; x++)
				matAdj[x][y] = 0;
		
//		laPila = new Pila(maxVertices);
	}
	
	public int estaEnMatAdj(int i, int j){
		return this.matAdj[i][j];
	}
	
	public void agregaEje(int i, int f) {
		matAdj[i][f] = 1;
		matAdj[f][i] = 1;
	}

	public int getMaxVertices() {
		return maxVertices;
	}

	public void setMaxVertices(int maxVertices) {
		this.maxVertices = maxVertices;
	}
	
}
